package qldc.pm.qlktcsdldc.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.util.PortalUtil;

import qldc.pm.qlktcsdldc.service.ClpSerializer;
import qldc.pm.qlktcsdldc.service.NguoiDungLocalServiceUtil;

import java.io.Serializable;

import java.lang.reflect.Method;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class NguoiDungClp extends BaseModelImpl<NguoiDung> implements NguoiDung {
    private long _IDQLKT_NguoiDung;
    private long _groupId;
    private long _companyId;
    private long _userId;
    private String _userUuid;
    private String _userName;
    private Date _createDate;
    private Date _modifiedDate;
    private String _TenDangNhap;
    private String _HoVaTen;
    private String _SoCMND;
    private long _IDTinhThuongTru;
    private long _IDQuanHuyenThuongTru;
    private long _IDPhuongXaThuongTru;
    private String _DiaChiThuongTru;
    private long _IDQLKT_DanhMucSoBanNganh;
    private int _GioiTinh;
    private long _DanToc;
    private String _ChuThich;
    private Boolean _deleted;
    private Boolean _KichHoat;
    private BaseModel<?> _nguoiDungRemoteModel;

    public NguoiDungClp() {
    }

    @Override
    public Class<?> getModelClass() {
        return NguoiDung.class;
    }

    @Override
    public String getModelClassName() {
        return NguoiDung.class.getName();
    }

    @Override
    public long getPrimaryKey() {
        return _IDQLKT_NguoiDung;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setIDQLKT_NguoiDung(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _IDQLKT_NguoiDung;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("IDQLKT_NguoiDung", getIDQLKT_NguoiDung());
        attributes.put("groupId", getGroupId());
        attributes.put("companyId", getCompanyId());
        attributes.put("userId", getUserId());
        attributes.put("userName", getUserName());
        attributes.put("createDate", getCreateDate());
        attributes.put("modifiedDate", getModifiedDate());
        attributes.put("TenDangNhap", getTenDangNhap());
        attributes.put("HoVaTen", getHoVaTen());
        attributes.put("SoCMND", getSoCMND());
        attributes.put("IDTinhThuongTru", getIDTinhThuongTru());
        attributes.put("IDQuanHuyenThuongTru", getIDQuanHuyenThuongTru());
        attributes.put("IDPhuongXaThuongTru", getIDPhuongXaThuongTru());
        attributes.put("DiaChiThuongTru", getDiaChiThuongTru());
        attributes.put("IDQLKT_DanhMucSoBanNganh", getIDQLKT_DanhMucSoBanNganh());
        attributes.put("GioiTinh", getGioiTinh());
        attributes.put("DanToc", getDanToc());
        attributes.put("ChuThich", getChuThich());
        attributes.put("deleted", getDeleted());
        attributes.put("KichHoat", getKichHoat());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long IDQLKT_NguoiDung = (Long) attributes.get("IDQLKT_NguoiDung");

        if (IDQLKT_NguoiDung != null) {
            setIDQLKT_NguoiDung(IDQLKT_NguoiDung);
        }

        Long groupId = (Long) attributes.get("groupId");

        if (groupId != null) {
            setGroupId(groupId);
        }

        Long companyId = (Long) attributes.get("companyId");

        if (companyId != null) {
            setCompanyId(companyId);
        }

        Long userId = (Long) attributes.get("userId");

        if (userId != null) {
            setUserId(userId);
        }

        String userName = (String) attributes.get("userName");

        if (userName != null) {
            setUserName(userName);
        }

        Date createDate = (Date) attributes.get("createDate");

        if (createDate != null) {
            setCreateDate(createDate);
        }

        Date modifiedDate = (Date) attributes.get("modifiedDate");

        if (modifiedDate != null) {
            setModifiedDate(modifiedDate);
        }

        String TenDangNhap = (String) attributes.get("TenDangNhap");

        if (TenDangNhap != null) {
            setTenDangNhap(TenDangNhap);
        }

        String HoVaTen = (String) attributes.get("HoVaTen");

        if (HoVaTen != null) {
            setHoVaTen(HoVaTen);
        }

        String SoCMND = (String) attributes.get("SoCMND");

        if (SoCMND != null) {
            setSoCMND(SoCMND);
        }

        Long IDTinhThuongTru = (Long) attributes.get("IDTinhThuongTru");

        if (IDTinhThuongTru != null) {
            setIDTinhThuongTru(IDTinhThuongTru);
        }

        Long IDQuanHuyenThuongTru = (Long) attributes.get(
                "IDQuanHuyenThuongTru");

        if (IDQuanHuyenThuongTru != null) {
            setIDQuanHuyenThuongTru(IDQuanHuyenThuongTru);
        }

        Long IDPhuongXaThuongTru = (Long) attributes.get("IDPhuongXaThuongTru");

        if (IDPhuongXaThuongTru != null) {
            setIDPhuongXaThuongTru(IDPhuongXaThuongTru);
        }

        String DiaChiThuongTru = (String) attributes.get("DiaChiThuongTru");

        if (DiaChiThuongTru != null) {
            setDiaChiThuongTru(DiaChiThuongTru);
        }

        Long IDQLKT_DanhMucSoBanNganh = (Long) attributes.get(
                "IDQLKT_DanhMucSoBanNganh");

        if (IDQLKT_DanhMucSoBanNganh != null) {
            setIDQLKT_DanhMucSoBanNganh(IDQLKT_DanhMucSoBanNganh);
        }

        Integer GioiTinh = (Integer) attributes.get("GioiTinh");

        if (GioiTinh != null) {
            setGioiTinh(GioiTinh);
        }

        Long DanToc = (Long) attributes.get("DanToc");

        if (DanToc != null) {
            setDanToc(DanToc);
        }

        String ChuThich = (String) attributes.get("ChuThich");

        if (ChuThich != null) {
            setChuThich(ChuThich);
        }

        Boolean deleted = (Boolean) attributes.get("deleted");

        if (deleted != null) {
            setDeleted(deleted);
        }

        Boolean KichHoat = (Boolean) attributes.get("KichHoat");

        if (KichHoat != null) {
            setKichHoat(KichHoat);
        }
    }

    @Override
    public long getIDQLKT_NguoiDung() {
        return _IDQLKT_NguoiDung;
    }

    @Override
    public void setIDQLKT_NguoiDung(long IDQLKT_NguoiDung) {
        _IDQLKT_NguoiDung = IDQLKT_NguoiDung;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setIDQLKT_NguoiDung",
                        long.class);

                method.invoke(_nguoiDungRemoteModel, IDQLKT_NguoiDung);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getGroupId() {
        return _groupId;
    }

    @Override
    public void setGroupId(long groupId) {
        _groupId = groupId;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setGroupId", long.class);

                method.invoke(_nguoiDungRemoteModel, groupId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getCompanyId() {
        return _companyId;
    }

    @Override
    public void setCompanyId(long companyId) {
        _companyId = companyId;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setCompanyId", long.class);

                method.invoke(_nguoiDungRemoteModel, companyId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getUserId() {
        return _userId;
    }

    @Override
    public void setUserId(long userId) {
        _userId = userId;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setUserId", long.class);

                method.invoke(_nguoiDungRemoteModel, userId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getUserUuid() throws SystemException {
        return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
    }

    @Override
    public void setUserUuid(String userUuid) {
        _userUuid = userUuid;
    }

    @Override
    public String getUserName() {
        return _userName;
    }

    @Override
    public void setUserName(String userName) {
        _userName = userName;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setUserName", String.class);

                method.invoke(_nguoiDungRemoteModel, userName);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getCreateDate() {
        return _createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        _createDate = createDate;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setCreateDate", Date.class);

                method.invoke(_nguoiDungRemoteModel, createDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getModifiedDate() {
        return _modifiedDate;
    }

    @Override
    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setModifiedDate", Date.class);

                method.invoke(_nguoiDungRemoteModel, modifiedDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getTenDangNhap() {
        return _TenDangNhap;
    }

    @Override
    public void setTenDangNhap(String TenDangNhap) {
        _TenDangNhap = TenDangNhap;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setTenDangNhap", String.class);

                method.invoke(_nguoiDungRemoteModel, TenDangNhap);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoVaTen() {
        return _HoVaTen;
    }

    @Override
    public void setHoVaTen(String HoVaTen) {
        _HoVaTen = HoVaTen;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setHoVaTen", String.class);

                method.invoke(_nguoiDungRemoteModel, HoVaTen);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoCMND() {
        return _SoCMND;
    }

    @Override
    public void setSoCMND(String SoCMND) {
        _SoCMND = SoCMND;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setSoCMND", String.class);

                method.invoke(_nguoiDungRemoteModel, SoCMND);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getIDTinhThuongTru() {
        return _IDTinhThuongTru;
    }

    @Override
    public void setIDTinhThuongTru(long IDTinhThuongTru) {
        _IDTinhThuongTru = IDTinhThuongTru;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setIDTinhThuongTru", long.class);

                method.invoke(_nguoiDungRemoteModel, IDTinhThuongTru);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getIDQuanHuyenThuongTru() {
        return _IDQuanHuyenThuongTru;
    }

    @Override
    public void setIDQuanHuyenThuongTru(long IDQuanHuyenThuongTru) {
        _IDQuanHuyenThuongTru = IDQuanHuyenThuongTru;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setIDQuanHuyenThuongTru",
                        long.class);

                method.invoke(_nguoiDungRemoteModel, IDQuanHuyenThuongTru);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getIDPhuongXaThuongTru() {
        return _IDPhuongXaThuongTru;
    }

    @Override
    public void setIDPhuongXaThuongTru(long IDPhuongXaThuongTru) {
        _IDPhuongXaThuongTru = IDPhuongXaThuongTru;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setIDPhuongXaThuongTru",
                        long.class);

                method.invoke(_nguoiDungRemoteModel, IDPhuongXaThuongTru);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getDiaChiThuongTru() {
        return _DiaChiThuongTru;
    }

    @Override
    public void setDiaChiThuongTru(String DiaChiThuongTru) {
        _DiaChiThuongTru = DiaChiThuongTru;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setDiaChiThuongTru",
                        String.class);

                method.invoke(_nguoiDungRemoteModel, DiaChiThuongTru);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getIDQLKT_DanhMucSoBanNganh() {
        return _IDQLKT_DanhMucSoBanNganh;
    }

    @Override
    public void setIDQLKT_DanhMucSoBanNganh(long IDQLKT_DanhMucSoBanNganh) {
        _IDQLKT_DanhMucSoBanNganh = IDQLKT_DanhMucSoBanNganh;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setIDQLKT_DanhMucSoBanNganh",
                        long.class);

                method.invoke(_nguoiDungRemoteModel, IDQLKT_DanhMucSoBanNganh);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public int getGioiTinh() {
        return _GioiTinh;
    }

    @Override
    public void setGioiTinh(int GioiTinh) {
        _GioiTinh = GioiTinh;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setGioiTinh", int.class);

                method.invoke(_nguoiDungRemoteModel, GioiTinh);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getDanToc() {
        return _DanToc;
    }

    @Override
    public void setDanToc(long DanToc) {
        _DanToc = DanToc;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setDanToc", long.class);

                method.invoke(_nguoiDungRemoteModel, DanToc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getChuThich() {
        return _ChuThich;
    }

    @Override
    public void setChuThich(String ChuThich) {
        _ChuThich = ChuThich;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setChuThich", String.class);

                method.invoke(_nguoiDungRemoteModel, ChuThich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Boolean getDeleted() {
        return _deleted;
    }

    @Override
    public void setDeleted(Boolean deleted) {
        _deleted = deleted;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setDeleted", Boolean.class);

                method.invoke(_nguoiDungRemoteModel, deleted);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Boolean getKichHoat() {
        return _KichHoat;
    }

    @Override
    public void setKichHoat(Boolean KichHoat) {
        _KichHoat = KichHoat;

        if (_nguoiDungRemoteModel != null) {
            try {
                Class<?> clazz = _nguoiDungRemoteModel.getClass();

                Method method = clazz.getMethod("setKichHoat", Boolean.class);

                method.invoke(_nguoiDungRemoteModel, KichHoat);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    public BaseModel<?> getNguoiDungRemoteModel() {
        return _nguoiDungRemoteModel;
    }

    public void setNguoiDungRemoteModel(BaseModel<?> nguoiDungRemoteModel) {
        _nguoiDungRemoteModel = nguoiDungRemoteModel;
    }

    public Object invokeOnRemoteModel(String methodName,
        Class<?>[] parameterTypes, Object[] parameterValues)
        throws Exception {
        Object[] remoteParameterValues = new Object[parameterValues.length];

        for (int i = 0; i < parameterValues.length; i++) {
            if (parameterValues[i] != null) {
                remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]);
            }
        }

        Class<?> remoteModelClass = _nguoiDungRemoteModel.getClass();

        ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader();

        Class<?>[] remoteParameterTypes = new Class[parameterTypes.length];

        for (int i = 0; i < parameterTypes.length; i++) {
            if (parameterTypes[i].isPrimitive()) {
                remoteParameterTypes[i] = parameterTypes[i];
            } else {
                String parameterTypeName = parameterTypes[i].getName();

                remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName);
            }
        }

        Method method = remoteModelClass.getMethod(methodName,
                remoteParameterTypes);

        Object returnValue = method.invoke(_nguoiDungRemoteModel,
                remoteParameterValues);

        if (returnValue != null) {
            returnValue = ClpSerializer.translateOutput(returnValue);
        }

        return returnValue;
    }

    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            NguoiDungLocalServiceUtil.addNguoiDung(this);
        } else {
            NguoiDungLocalServiceUtil.updateNguoiDung(this);
        }
    }

    @Override
    public NguoiDung toEscapedModel() {
        return (NguoiDung) ProxyUtil.newProxyInstance(NguoiDung.class.getClassLoader(),
            new Class[] { NguoiDung.class }, new AutoEscapeBeanHandler(this));
    }

    @Override
    public Object clone() {
        NguoiDungClp clone = new NguoiDungClp();

        clone.setIDQLKT_NguoiDung(getIDQLKT_NguoiDung());
        clone.setGroupId(getGroupId());
        clone.setCompanyId(getCompanyId());
        clone.setUserId(getUserId());
        clone.setUserName(getUserName());
        clone.setCreateDate(getCreateDate());
        clone.setModifiedDate(getModifiedDate());
        clone.setTenDangNhap(getTenDangNhap());
        clone.setHoVaTen(getHoVaTen());
        clone.setSoCMND(getSoCMND());
        clone.setIDTinhThuongTru(getIDTinhThuongTru());
        clone.setIDQuanHuyenThuongTru(getIDQuanHuyenThuongTru());
        clone.setIDPhuongXaThuongTru(getIDPhuongXaThuongTru());
        clone.setDiaChiThuongTru(getDiaChiThuongTru());
        clone.setIDQLKT_DanhMucSoBanNganh(getIDQLKT_DanhMucSoBanNganh());
        clone.setGioiTinh(getGioiTinh());
        clone.setDanToc(getDanToc());
        clone.setChuThich(getChuThich());
        clone.setDeleted(getDeleted());
        clone.setKichHoat(getKichHoat());

        return clone;
    }

    @Override
    public int compareTo(NguoiDung nguoiDung) {
        int value = 0;

        if (getIDQLKT_NguoiDung() < nguoiDung.getIDQLKT_NguoiDung()) {
            value = -1;
        } else if (getIDQLKT_NguoiDung() > nguoiDung.getIDQLKT_NguoiDung()) {
            value = 1;
        } else {
            value = 0;
        }

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof NguoiDungClp)) {
            return false;
        }

        NguoiDungClp nguoiDung = (NguoiDungClp) obj;

        long primaryKey = nguoiDung.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(41);

        sb.append("{IDQLKT_NguoiDung=");
        sb.append(getIDQLKT_NguoiDung());
        sb.append(", groupId=");
        sb.append(getGroupId());
        sb.append(", companyId=");
        sb.append(getCompanyId());
        sb.append(", userId=");
        sb.append(getUserId());
        sb.append(", userName=");
        sb.append(getUserName());
        sb.append(", createDate=");
        sb.append(getCreateDate());
        sb.append(", modifiedDate=");
        sb.append(getModifiedDate());
        sb.append(", TenDangNhap=");
        sb.append(getTenDangNhap());
        sb.append(", HoVaTen=");
        sb.append(getHoVaTen());
        sb.append(", SoCMND=");
        sb.append(getSoCMND());
        sb.append(", IDTinhThuongTru=");
        sb.append(getIDTinhThuongTru());
        sb.append(", IDQuanHuyenThuongTru=");
        sb.append(getIDQuanHuyenThuongTru());
        sb.append(", IDPhuongXaThuongTru=");
        sb.append(getIDPhuongXaThuongTru());
        sb.append(", DiaChiThuongTru=");
        sb.append(getDiaChiThuongTru());
        sb.append(", IDQLKT_DanhMucSoBanNganh=");
        sb.append(getIDQLKT_DanhMucSoBanNganh());
        sb.append(", GioiTinh=");
        sb.append(getGioiTinh());
        sb.append(", DanToc=");
        sb.append(getDanToc());
        sb.append(", ChuThich=");
        sb.append(getChuThich());
        sb.append(", deleted=");
        sb.append(getDeleted());
        sb.append(", KichHoat=");
        sb.append(getKichHoat());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(64);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.qlktcsdldc.model.NguoiDung");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>IDQLKT_NguoiDung</column-name><column-value><![CDATA[");
        sb.append(getIDQLKT_NguoiDung());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>groupId</column-name><column-value><![CDATA[");
        sb.append(getGroupId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>companyId</column-name><column-value><![CDATA[");
        sb.append(getCompanyId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userId</column-name><column-value><![CDATA[");
        sb.append(getUserId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userName</column-name><column-value><![CDATA[");
        sb.append(getUserName());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>createDate</column-name><column-value><![CDATA[");
        sb.append(getCreateDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
        sb.append(getModifiedDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>TenDangNhap</column-name><column-value><![CDATA[");
        sb.append(getTenDangNhap());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>HoVaTen</column-name><column-value><![CDATA[");
        sb.append(getHoVaTen());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>SoCMND</column-name><column-value><![CDATA[");
        sb.append(getSoCMND());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>IDTinhThuongTru</column-name><column-value><![CDATA[");
        sb.append(getIDTinhThuongTru());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>IDQuanHuyenThuongTru</column-name><column-value><![CDATA[");
        sb.append(getIDQuanHuyenThuongTru());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>IDPhuongXaThuongTru</column-name><column-value><![CDATA[");
        sb.append(getIDPhuongXaThuongTru());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>DiaChiThuongTru</column-name><column-value><![CDATA[");
        sb.append(getDiaChiThuongTru());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>IDQLKT_DanhMucSoBanNganh</column-name><column-value><![CDATA[");
        sb.append(getIDQLKT_DanhMucSoBanNganh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>GioiTinh</column-name><column-value><![CDATA[");
        sb.append(getGioiTinh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>DanToc</column-name><column-value><![CDATA[");
        sb.append(getDanToc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ChuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>deleted</column-name><column-value><![CDATA[");
        sb.append(getDeleted());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>KichHoat</column-name><column-value><![CDATA[");
        sb.append(getKichHoat());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
